import { post,download } from '@/http/request'


/**
 * 淤地坝事件上报信息分页查询
 * @param {*} params
 * @returns
 */
export const applyPageList = params => {
    return post({
        url: '/water/apply/pageList',
        params
    })
}

/**
 * 淤地坝事件上报信息不带分页查询
 * @param {*} params
 * @returns
 */
export function applyListAll() {
    return post({
        url: '/water/apply/listAll'
    })
}

/**
 * 淤地坝事件上报信息新增数据
 * @param {*} params
 * @returns
 */
export const applyAdd = params => {
    return post({
        url: '/water/apply/save',
        params
    })
}

/**
 * 淤地坝事件上报信息修改数据
 * @param {*} params
 * @returns
 */
export const applyUpdate = params => {
    return post({
        url: '/water/apply/update',
        params
    })
}

/**
 * 淤地坝事件上报信息删除数据
 * @param {*} params
 * @returns
 */
export const applyDel = params => {
    return post({
        url: '/water/apply/delete',
        params
    })
}


/**
 * 导出数据
 * @param {*} params
 * @returns
 */
export const applyExportExcel = params => {
    return download({
        url: '/water/apply/exportExcel',
        params
    })
}


/**
 * 导出数据
 * @param {*} params
 * @returns
 */
export const applyImportExcel = params => {
    return download({
        url: '/water/apply/exportExcel',
        params
    })
}